package com.corpgovernment.travelstandard.controller;

import com.corpgovernment.api.organization.dto.TravelStandardRcFixRsp;
import com.corpgovernment.api.organization.dto.request.TravelStandardRcTypeReq;
import com.corpgovernment.common.base.JSONResult;
import com.corpgovernment.travelstandard.impl.MbTravelstandReasonCodeService;
import com.corpgovernment.travelstandard.vo.airport.GetAirportTransferStandardRequestVO;
import com.corpgovernment.travelstandard.vo.airport.GetAirportTransferStandardResponseVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @author yuxing zhang
 * @date 2024/2/20 16:03
 */
@Slf4j
@RestController
@RequestMapping("/travelStandardRcFix")
public class TravelStandardRcFixController {

    @Autowired
    private MbTravelstandReasonCodeService mbTravelstandReasonCodeService;

    /**
     * 洗RC数据
     * 若新增差标类型，则需要为旧数据添加相应差标的默认RC信息
     */
    @PostMapping("/addOldTravelStandardRcInfo")
    public JSONResult<TravelStandardRcFixRsp> addOldTravelStandardRcInfo(@RequestBody TravelStandardRcTypeReq request) {
        return JSONResult.success(mbTravelstandReasonCodeService.addOldTravelStandardRcInfo(request));
    }



}
